<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: "app",
  components: {},
  data() {
    return {
      showNav: true,
    }
  },
  watch: {
    $route: {
      deep: true,
      immediate: true,
      handler(val) {
        const name = val.path || "";
        this.showNav = !name.includes("admin") && !name.includes("login");
      }
    }
  },

};
</script>

<style>
html {
  height: 100%;
  width: 100%;
  font-size: 62.5%;
}
body {
  height: 100%;
  width: 100%;
  font-size: 1.4rem;
  margin: 0;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  min-height: 100%;
  height: 100%;
  width: 100%;
}
</style>
